
<%@ page import="org.icress.fusion.b2b.SalesOrder" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'b2b.salesOrder', default: 'SalesOrder')}" />
    <title>
    	<g:message code="b2b.salesOrder.show" />
    	~
    	${salesOrderInstance?.id}
    </title>
</head>
<body>
<!--
<div class="nav">
    <shiro:hasPermission permission="salesOrder:list">
    <span class="menuButton"><g:link class="list" action="list"><g:message code="b2b.salesOrder.list" /></g:link></span>
    </shiro:hasPermission>
</div>
-->
<div class="body">
    <h1><g:message code="b2b.salesOrder.show" /></h1>
    <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
        <g:render template="/b2b/salesOrder/show_${pageLayoutName}"/>
    </div>
    <div class="buttons">
        <g:form>
            <g:hiddenField name="id" value="${salesOrderInstance?.id}" />
            <shiro:hasPermission permission="salesOrder:edit">
            <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'b2b.salesOrder.edit', default: 'Edit')}" /></span>
            </shiro:hasPermission>
            <shiro:hasPermission permission="salesOrder:delete">
            <span class="button"><g:actionSubmit class="delete" action="delete" 
				value="${message(code: 'b2b.salesOrder.delete', default: 'Delete')}" 
				onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
			</span>
            </shiro:hasPermission>
        </g:form>
    </div>
    <!--workflow history-->
	<div class="dialog">
		<g:include controller="salesOrderAjax" action="workflowHistory" params="[salesOrderId: salesOrderInstance?.id, ownerId : salesOrderInstance?.owner?.id]" />
	</div>
    <!--outbound message-->
    <div class="dialog">
		<g:include controller="salesOrderAjax" action="outBoundMessage" params="[salesOrderId: salesOrderInstance?.id]" />
	</div>
</div>
</body>
</html>
